//
//  UIImageView+extension.swift
//  SinaMicroblog
//
//  Created by 原鹏飞 on 2017/4/5.
//  Copyright © 2017年 YuanPengFei. All rights reserved.
//

import UIKit

//MARK: - 便利构造器
extension UIImageView {
    convenience init(imageName: String) {
        self.init()
        //设置图片
        let image = UIImage(named: imageName)
        self.image = image
    }
}
